package Exc.domain;

/**
 * The type Json result.
 * @author fengke
 */
public class JSONResult {
    private boolean success;
    private String msg;
    private Object data;

    /**
     * Is success boolean.
     *
     * @return the boolean
     */
    public boolean isSuccess() {
        return success;
    }

    /**
     * Sets success.
     *
     * @param success the success
     */
    public void setSuccess(boolean success) {
        this.success = success;
    }

    /**
     * Gets msg.
     *
     * @return the msg
     */
    public String getMsg() {
        return msg;
    }

    /**
     * Sets msg.
     *
     * @param msg the msg
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * Gets data.
     *
     * @return the data
     */
    public Object getData() {
        return data;
    }

    /**
     * Sets data.
     *
     * @param data the data
     */
    public void setData(Object data) {
        this.data = data;
    }

    /**
     * Instantiates a new Json result.
     *
     * @param success the success
     * @param msg     the msg
     * @param data    the data
     */
    public JSONResult(boolean success, String msg, Object data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }

    /**
     * Instantiates a new Json result.
     *
     * @param success the success
     * @param msg     the msg
     */
    public JSONResult(boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }
}
